<template>
	<view class="home">
		<view class="item_yl" @click="displayData">
			<view class="item_yl_flx">
				<image class="item_yl_img" src="../../../../static/images/zhexian.png" mode=""></image>
				<view class="">
					雨量站数据显示
				</view>
			</view>
			<uni-icons type="right" color="#324d6e" size="30"></uni-icons>


		</view>
		<view class="item_yl" @click="setup">
			<view class="item_yl_flx">
				<image class="item_yl_img" src="../../../../static/images/shezhi.png" mode=""></image>
				<view class="">
					雨量站参数配置
				</view>
			</view>
			<uni-icons type="right" color="#324d6e" size="30"></uni-icons>


		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onUnload() {
			console.log('卸载');

		},
		onShow() {

		},
		onLoad(option) {

		},
		methods: {
			displayData() {
				uni.navigateTo({
					url: '/pages/home/measureFun/yuLiangJi/deviceList'
				});
			},
			setup() {
				if (this.vuex_devicename == '') {
					uni.showToast({
						title: '蓝牙未连接',
						duration: 2000
					});
					return
				}
				uni.navigateTo({
					url: '/pages/home/measureFun/yuLiangJi/setUp'
				});
			}
		}
	}
</script>
<style scoped lang="scss">
	.home {
		padding: 30rpx;

		.item_yl {
			font-size: 40rpx;
			border-radius: 20rpx;
			padding: 20rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background-color: #f4f6f8;
			color: #324d6e;
			margin-bottom: 30rpx;
			box-shadow: 0rpx 0rpx 20rpx rgba(0, 0, 0, 0.2);

			.item_yl_flx {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.item_yl_img {
					width: 80rpx;
					height: 80rpx;
					margin-right: 30rpx;
				}
			}

		}
	}
</style>
<style>
	page {
		background-color: #ffffff;
	}
</style>